{"id":84,"date":"2010-06-15T12:26:54","date_gmt":"2010-06-15T17:26:54","guid":{"rendered":"http:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/"},"modified":"2014-11-13T14:04:17","modified_gmt":"2014-11-13T19:04:17","slug":"identifying-test-cases-2","status":"publish","type":"post","link":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/","title":{"rendered":"Identifying Test Cases #2"},"content":{"rendered":"<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \">Last time, in Identifying Test Cases #1, we looked at some simple examples of identifying test cases for SQL statements. This time, we're going to look at a more complex example in the form of a database view.<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><strong>Our Example<\/strong><br \/>Suppose we want to know which of our employees are under the age of 18. In many areas, employment rules are different for those employees, and our application will need to find them. We might write a view like this:<\/p>\n<pre style=\"background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(243, 242, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(69, 99, 192); border-right-color: rgb(69, 99, 192); border-bottom-color: rgb(69, 99, 192); border-left-color: rgb(69, 99, 192); display: block; overflow-x: auto; overflow-y: auto; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; white-space: pre; background-position: initial initial; background-repeat: initial initial; \">\r\nCREATE VIEW HumanResources.MinorEmployee AS\r\n    SELECT EmployeeId, DATEDIFF(year, BirthDate, GETDATE()) Age\r\n    FROM HumanResources.Employee\r\n    WHERE DATEDIFF(year, BirthDate, GETDATE()) &lt; 18;\r\n<\/pre>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \">We're going to look at three things from the perspective of identifying test cases:<br \/>1. The calculation of age<br \/>2. The GETDATE function<br \/>3. The boundary, where age &lt; 18<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \">We'll find some test cases, and maybe a bug or two along the way...<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><strong>Calculation of age<\/strong><br \/>The first thing we'll notice is that the age calculation is done twice! A simple mistyping here would lead to a defect. Furthermore, a calculation embedded inside a view or other location can be rather difficult to test. Let's make life a little simpler and move the calculation to a function. Our function might look like this:<\/p>\n<pre style=\"background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(243, 242, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(69, 99, 192); border-right-color: rgb(69, 99, 192); border-bottom-color: rgb(69, 99, 192); border-left-color: rgb(69, 99, 192); display: block; overflow-x: auto; overflow-y: auto; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; white-space: pre; background-position: initial initial; background-repeat: initial initial; \">\r\nCREATE FUNCTION HumanResources.CalculateAge (\r\n    @BirthDate DATETIME\r\n) RETURNS INT\r\nAS\r\nBEGIN\r\n    RETURN DATEDIFF(year, @BirthDate, GETDATE());\r\nEND;\r\n<\/pre>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><strong>The GETDATE function<\/strong><br \/>We're not out of the water yet on testing our age calculation. The way our function is written right now, our test cases would have to change every time the value of GETDATE() changes... and well that changes pretty often! One solution is to make it so that our function doesn't use GETDATE() at all:<\/p>\n<pre style=\"background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(243, 242, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(69, 99, 192); border-right-color: rgb(69, 99, 192); border-bottom-color: rgb(69, 99, 192); border-left-color: rgb(69, 99, 192); display: block; overflow-x: auto; overflow-y: auto; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; white-space: pre; background-position: initial initial; background-repeat: initial initial; \">\r\nCREATE FUNCTION HumanResources.CalculateAge (\r\n    @BirthDate DATETIME,\r\n    @ReferenceDate DATETIME\r\n) RETURNS INT\r\nAS\r\nBEGIN\r\n    RETURN DATEDIFF(year, @BirthDate, @ReferenceDate);\r\nEND;\r\n<\/pre>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \">You might be saying, &quot;Well, Big Deal! Now calling this function looks so much like calling DATEDIFF, what's the point?&quot; Bear with me a little longer, and we'll see why this helps!<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \">At this point, we can easily write test cases against this function. Here's an example in the<span class=\"Apple-converted-space\">\u00a0<\/span><a href=\"http:\/\/www2.sqlity.net\/tsqlt\" style=\"color: rgb(39, 99, 165); font-weight: normal; text-decoration: none; \">tSQLt SQL Server unit testing framework<\/a>:<\/p>\n<pre style=\"background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(243, 242, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(69, 99, 192); border-right-color: rgb(69, 99, 192); border-bottom-color: rgb(69, 99, 192); border-left-color: rgb(69, 99, 192); display: block; overflow-x: auto; overflow-y: auto; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; white-space: pre; background-position: initial initial; background-repeat: initial initial; \">\r\nCREATE PROCEDURE testHumanResources.[test CalculateAge returns correct age on a birthday]\r\nAS\r\nBEGIN\r\n    DECLARE @actualResult INT;\r\n    \r\n    SELECT @actualResult = HumanResources.CalculateAge('6\/13\/2000', '6\/13\/2010');\r\n    \r\n    EXEC tSQLt.AssertEquals 10, @actualResult;\r\nEND;\r\nGO\r\n<\/pre>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \">So here are some other test cases we might consider:<br \/>1. BirthDate or ReferenceDate are NULL - because we know how special NULLs are. These tests will force you to consider how you want to handle nulls in your application.<br \/>2. BirthDate and ReferenceDate are equal - this is a special case. While it is not likely in this particular example because an employee would not be hired the day they were born, an age calculation may happen in other circumstances (e.g. the age of inventory).<br \/>3. BirthDate &lt; ReferenceDate - the most common case, but let's take a closer look at the following:<br \/>\u00a0\u00a0\u00a0a) when BirthDate is just a few days before ReferenceDate. Is the result 0 as we'd expect?<br \/>\u00a0\u00a0\u00a0b) when BirthDate is exactly on a year boundary, as in our test case example above<br \/>\u00a0\u00a0\u00a0c) when BirthDate is a day before a year boundary<br \/>\u00a0\u00a0\u00a0d) when BirthDate is a day after a year boundary<br \/>4. BirthDate &gt; ReferenceDate - this really should never happen, right?<br \/>5. When BirthDate is on February 29th of a leap year - leap years are often an overlooked piece of date handling<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><strong>Some skepticism<\/strong><br \/><em>Shouldn't we expect DATEDIFF to just work?<\/em><br \/>Perhaps, but we also need to validate our usage of it. If you write these test cases against the CalculateAge function, you may be surprised to find that there is a bug. (That's for homework, by the way)<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><em>Why do we test things that should never happen?<\/em><br \/>In the test cases #1, #2 and #4 above, we wouldn't really expect these values to happen in real life. #1 for example, may be entirely preventable if BirthDate is a NOT NULL column for the Employee table. However, if the CalculateAge function is applied to another purpose, it is reasonable that NULL values could be present.<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \">#2 and #4 came to mind when working on a different application involving newborns. Obviously in this case, the BirthDate could be today; and if some crafty user decided that BirthDate was a good spot for expected due date (or made a typo and our application wasn't smart enough to catch it) a future date could be present. Besides, if the reference date could be in the past, it makes it possible for the BirthDate to be in the future relative to the reference date.<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><em>What are all these strange cases for #3 about?<\/em><br \/>Since the function calculates the age, one of the boundaries is the birthday anniversary. On either side of the employee's birthday, the value of age should be different. It's important to test boundary conditions because these are common places for defects to exist.<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><strong>Homework<\/strong><br \/>We're not done with this example yet, but I think you have enough to chew on for this time \ud83d\ude42<br \/>Homework for this time is to write some of the test cases and fix the bug in CalculateAge.<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; \"><strong>What's next?<\/strong><br \/>Next time we'll take a break from looking at code examples and talk about helpful tools and techniques for identifying test cases. Then we'll revisit this example and discuss a bit more about that pesky GETDATE() function and how to test the MinorEmployee view independently of the CalculateAge() function.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last time, in Identifying Test Cases #1, we looked at some simple examples of identifying test cases for SQL statements. This time, we&#8217;re going to look at a more complex example in the form of a database view. Our ExampleSuppose <a href=\"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/\">[more&#8230;]<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-general"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Identifying Test Cases #2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Identifying Test Cases #2\" \/>\n<meta property=\"og:description\" content=\"Last time, in Identifying Test Cases #1, we looked at some simple examples of identifying test cases for SQL statements. This time, we&#039;re going to look at a more complex example in the form of a database view. Our ExampleSuppose [more...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/\" \/>\n<meta property=\"og:site_name\" content=\"sqlity.net\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sqlity.net\" \/>\n<meta property=\"article:published_time\" content=\"2010-06-15T17:26:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-11-13T19:04:17+00:00\" \/>\n<meta name=\"author\" content=\"dennis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sqlity\" \/>\n<meta name=\"twitter:site\" content=\"@sqlity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dennis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/\"},\"author\":{\"name\":\"dennis\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#\\\/schema\\\/person\\\/da93e377379dd64d1428fd3d130269fd\"},\"headline\":\"Identifying Test Cases #2\",\"datePublished\":\"2010-06-15T17:26:54+00:00\",\"dateModified\":\"2014-11-13T19:04:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/\"},\"wordCount\":814,\"commentCount\":0,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/\",\"url\":\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/\",\"name\":\"Identifying Test Cases #2\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#website\"},\"datePublished\":\"2010-06-15T17:26:54+00:00\",\"dateModified\":\"2014-11-13T19:04:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#\\\/schema\\\/person\\\/da93e377379dd64d1428fd3d130269fd\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/84\\\/identifying-test-cases-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sqlity.net\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Identifying Test Cases #2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/sqlity.net\\\/en\\\/\",\"name\":\"sqlity.net\",\"description\":\"Quality for SQL\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sqlity.net\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sqlity.net\\\/en\\\/#\\\/schema\\\/person\\\/da93e377379dd64d1428fd3d130269fd\",\"name\":\"dennis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/166ceda64e242f6ea01d467d0b6121b7264f9127efd3531ece1126385c50a385?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/166ceda64e242f6ea01d467d0b6121b7264f9127efd3531ece1126385c50a385?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/166ceda64e242f6ea01d467d0b6121b7264f9127efd3531ece1126385c50a385?s=96&d=mm&r=g\",\"caption\":\"dennis\"},\"sameAs\":[\"http:\\\/\\\/www.curiouslycorrect.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Identifying Test Cases #2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/","og_locale":"en_US","og_type":"article","og_title":"Identifying Test Cases #2","og_description":"Last time, in Identifying Test Cases #1, we looked at some simple examples of identifying test cases for SQL statements. This time, we're going to look at a more complex example in the form of a database view. Our ExampleSuppose [more...]","og_url":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/","og_site_name":"sqlity.net","article_publisher":"https:\/\/www.facebook.com\/sqlity.net","article_published_time":"2010-06-15T17:26:54+00:00","article_modified_time":"2014-11-13T19:04:17+00:00","author":"dennis","twitter_card":"summary_large_image","twitter_creator":"@sqlity","twitter_site":"@sqlity","twitter_misc":{"Written by":"dennis","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/#article","isPartOf":{"@id":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/"},"author":{"name":"dennis","@id":"https:\/\/sqlity.net\/en\/#\/schema\/person\/da93e377379dd64d1428fd3d130269fd"},"headline":"Identifying Test Cases #2","datePublished":"2010-06-15T17:26:54+00:00","dateModified":"2014-11-13T19:04:17+00:00","mainEntityOfPage":{"@id":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/"},"wordCount":814,"commentCount":0,"articleSection":["General"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/","url":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/","name":"Identifying Test Cases #2","isPartOf":{"@id":"https:\/\/sqlity.net\/en\/#website"},"datePublished":"2010-06-15T17:26:54+00:00","dateModified":"2014-11-13T19:04:17+00:00","author":{"@id":"https:\/\/sqlity.net\/en\/#\/schema\/person\/da93e377379dd64d1428fd3d130269fd"},"breadcrumb":{"@id":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sqlity.net\/en\/84\/identifying-test-cases-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sqlity.net\/en\/"},{"@type":"ListItem","position":2,"name":"Identifying Test Cases #2"}]},{"@type":"WebSite","@id":"https:\/\/sqlity.net\/en\/#website","url":"https:\/\/sqlity.net\/en\/","name":"sqlity.net","description":"Quality for SQL","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sqlity.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sqlity.net\/en\/#\/schema\/person\/da93e377379dd64d1428fd3d130269fd","name":"dennis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/166ceda64e242f6ea01d467d0b6121b7264f9127efd3531ece1126385c50a385?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/166ceda64e242f6ea01d467d0b6121b7264f9127efd3531ece1126385c50a385?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/166ceda64e242f6ea01d467d0b6121b7264f9127efd3531ece1126385c50a385?s=96&d=mm&r=g","caption":"dennis"},"sameAs":["http:\/\/www.curiouslycorrect.com"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXuw-1m","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":0,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"wp:attachment":[{"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sqlity.net\/en\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}